package com.yubest.junit.img;

import lombok.Data;

import java.awt.*;

/**
 * @Author: hweiyu
 * @Description: TODO
 * @Date: 2025/2/20 17:19
 */
@Data
public class WatermarkConfig {
    // 水印配置类
    private String text;
    private int x;
    private int y;
    private float opacity; // 0.0 ~ 1.0
    private Color color;
    private Font font;
    private double rotation; // 旋转角度（单位：度）

    public WatermarkConfig(String text, int x, int y, float opacity, Color color, Font font, double rotation) {
        this.text = text;
        this.x = x;
        this.y = y;
        this.opacity = opacity;
        this.color = color;
        this.font = font;
        this.rotation = rotation;
    }
}
